<?php
namespace Home\Controller;
use Think\Controller;
class FormController extends Controller {

	function index(){
		$this->display();		
	}   
	function data(){
		var_dump($_POST);
		echo $_POST['uname'];
		
	}
	function regForm(){
		if(IS_POST){
			//$_POST = json_decode($GLOBALS['HTTP_RAW_POST_DATA'],true);
			$put = array();
			$put = json_decode(file_get_contents('php://input'),true);			
			dump($put);
		}else{
			$this->display();
			
		}

	}
}